package com.wby.store.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 整合Mp
 * 1. 导入依赖
 *      <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.3.1</version>
 *         </dependency>
 * 2. 配置
 *      配置数据源
 *          pom导入mysql驱动
 *          yml配置数据源
 *      配置mp
 *          @mapperScan
 *          配置扫描xml文件的路径
 */
//@EnableDiscoveryClient
@MapperScan("com.wby.store.product.dao")
@SpringBootApplication
public class StoreProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(StoreProductApplication.class, args);
    }

}
